/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test1.library.main;

import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import test1.library.command.commands;
import test1.library.wrapper.ScannerConsoleWrapper;

/**
 *
 * @author anton
 * @version 0.0.0.0.4
 */
public class Main {

	private static final String HEADER_FORMAT = "%1$s (%2$s)";

	private static final String APP_NAME = "Library";
	
	private static final String VERSION = "0.0.0.0.4";
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		System.out.println(String.format(HEADER_FORMAT, APP_NAME, VERSION)); {
        commands commands = new commands();
        commands.commands();
     
	}
 {
     new Thread(new Runnable() {
			
			@Override
			public void run() {
                         

				ScannerConsoleWrapper scannerConsoleWrapper = new ScannerConsoleWrapper();
                    try {
                        scannerConsoleWrapper.listenAndExecute();
                    } catch (IOException ex) {
                        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                    }
			};
			
		}).start();
        
	}

		
	}
       
}

